﻿@model CloudFranceTriple.Models.ForumCategorySet
@{    
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.CategoryCreateTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>
       @ViewBag.Title
    </h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)    
            <fieldset>
                <legend>@CloudFranceTriple.WebRole.Properties.Resources.CategoryCreateTitle</legend>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.CategoryLabel
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LabelForumCategory)
                    @Html.ValidationMessageFor(model => model.LabelForumCategory)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.CategoryDescription
                </div>
                <div class="editor-field">
                    <textarea id="DescriptionForumCategory" name="DescriptionForumCategory">
                        @Html.DisplayTextFor(model => model.DescriptionForumCategory)
                    </textarea>
                    @Html.ValidationMessageFor(model => model.DescriptionForumCategory)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.CategoryForumLabel
                </div>
                <div class="editor-field">
                    @Html.DropDownList("Forum_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.Forum_Id)
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate" />
                </p>
            </fieldset>
        }
        @Html.Partial("_BackToForumList")
        <script type="text/javascript" src="http://tinymce.cachefly.net/4.0/tinymce.min.js"></script>
        <script type="text/javascript">tinymce.init({ selector: "textarea#DescriptionForumCategory" });</script>
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
